#pragma once
#include "Service.h"
#include <QTreeWidgetItem>
#include <QString>
#include "XmlRW.h"
#include <QDomNode>
#include <qmap.h>
#include <QThread>
class CServiceGetDataDefinition :
    public CService
{
public:
    CServiceGetDataDefinition(void);
    virtual ~CServiceGetDataDefinition(void);
    BOOL SetTreeItem(QTreeWidgetItem *treeItem);
    //BOOL SetXml(QDomNode xml);
    BOOL OnGetDataDefinition(const char * szDataRef, CMTree & tree);
    BOOL IsFc(QString fc);
    int UpdateFc(QString fc);
public:
    void ServiceName();
private:
    QTreeWidgetItem *m_CurrentItem;
    //QDomNode m_xml;
    QMap<QString,int> m_FcMap;
    QList<QString> fclist;
    void PrintTree(CMTree & tree);
    void PrintVar(CAcsiVar & var);
    void PrintType(int type, int size);
};
